#define _CRT_SECURE_NO_WARNINGS 1
#include "sort.h"
void PrintArray(int* arr, int n)
{
	for (int i = 0; i < n; i++)
	{
		printf("%d ", arr[i]);
	}
	printf("\n");
}
int main()
{
	int arr[] = { 2,54,4,3,5,6,8,3,7,3,6,2,3,8,95,7,43,32,2,54,7,4,6,7, 6,7,8,4,8,4,87,454};

	int n = sizeof(arr) / sizeof(arr[0]);

	PrintArray(arr, n);
	//QuickSort(arr, 0, n - 1);

	QuickSortNonR(arr, 0, n - 1);

	PrintArray(arr, n);

	return 0;
}